<?php
//namespace Payment;
use Lib\Translit as Translator;
class PaymentIn {
	public function processPayment($payment, $key){
        $m = print_r($payment, true);
        system('echo "Start'.$m.$key.'.End" | wall');
        $result = true;
        return $result;
    }

    public function  processSms($sms, $sum, $key){
        system('echo "Start'.$sms.$sum.$key.'.End" | wall');
        
        $result = new \stdClass();
        $result->message = Translator::translit('Ваше авто будет размещено на 63 сайтах. Заходите на MyAuto.ua', Translator::$CHAR_TABLE);
        $result->invoice_id = 345;
        
    	return $result;
    }
}